"""
Excel 导出工具
"""
import pandas as pd
from typing import Dict, Any


class ExcelExporter:
    """
    Excel 导出工具
    """
    def export(self, data: Dict[str, Any], file_path: str) -> str:
        """
        导出数据到 Excel
        
        Args:
            data: 数据
            file_path: 导出路径
        """
        df = pd.DataFrame(data)
        df.to_excel(file_path, index=False)
        return file_path